package com.qst.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Date;

/**
 * 留言表
 * @TableName message
 */
@TableName(value ="message")
public class Message {
    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    private Integer m_id;
    
    @JsonProperty("mId")
    private Integer mId;

    /**
     * 企业ID
     */
    private Integer com_id;
    
    @JsonProperty("comId")
    private Integer comId;

    /**
     * 留言内容
     */
    private String msg_detail;
    
    @JsonProperty("msgDetail")
    private String msgDetail;

    /**
     * 留言时间
     */
    private Date msg_time;
    
    @JsonProperty("msgTime")
    private Date msgTime;

    /**
     * 回复内容
     */
    private String resp_detail;
    
    @JsonProperty("respDetail")
    private String respDetail;

    /**
     * 回复时间
     */
    private Date resp_time;
    
    @JsonProperty("respTime")
    private Date respTime;

    /**
     * 留言状态
     */
    private String msg_state;
    
    @JsonProperty("msgState")
    private String msgState;

    // ID字段的getter/setter方法
    public Integer getMId() {
        return mId != null ? mId : m_id;
    }

    public void setMId(Integer mId) {
        this.mId = mId;
        if (this.m_id == null) {
            this.m_id = mId;
        }
    }

    public Integer getM_id() {
        return m_id;
    }

    public void setM_id(Integer m_id) {
        this.m_id = m_id;
        if (this.mId == null) {
            this.mId = m_id;
        }
    }

    // 企业ID字段的getter/setter方法
    public Integer getComId() {
        return comId != null ? comId : com_id;
    }

    public void setComId(Integer comId) {
        this.comId = comId;
        if (this.com_id == null) {
            this.com_id = comId;
        }
    }

    public Integer getCom_id() {
        return com_id;
    }

    public void setCom_id(Integer com_id) {
        this.com_id = com_id;
        if (this.comId == null) {
            this.comId = com_id;
        }
    }

    // 留言内容字段的getter/setter方法
    public String getMsgDetail() {
        return msgDetail != null ? msgDetail : msg_detail;
    }

    public void setMsgDetail(String msgDetail) {
        this.msgDetail = msgDetail;
        if (this.msg_detail == null) {
            this.msg_detail = msgDetail;
        }
    }

    public String getMsg_detail() {
        return msg_detail;
    }

    public void setMsg_detail(String msg_detail) {
        this.msg_detail = msg_detail;
        if (this.msgDetail == null) {
            this.msgDetail = msg_detail;
        }
    }

    // 留言时间字段的getter/setter方法
    public Date getMsgTime() {
        return msgTime != null ? msgTime : msg_time;
    }

    public void setMsgTime(Date msgTime) {
        this.msgTime = msgTime;
        if (this.msg_time == null) {
            this.msg_time = msgTime;
        }
    }

    public Date getMsg_time() {
        return msg_time;
    }

    public void setMsg_time(Date msg_time) {
        this.msg_time = msg_time;
        if (this.msgTime == null) {
            this.msgTime = msg_time;
        }
    }

    // 回复内容字段的getter/setter方法
    public String getRespDetail() {
        return respDetail != null ? respDetail : resp_detail;
    }

    public void setRespDetail(String respDetail) {
        this.respDetail = respDetail;
        if (this.resp_detail == null) {
            this.resp_detail = respDetail;
        }
    }

    public String getResp_detail() {
        return resp_detail;
    }

    public void setResp_detail(String resp_detail) {
        this.resp_detail = resp_detail;
        if (this.respDetail == null) {
            this.respDetail = resp_detail;
        }
    }

    // 回复时间字段的getter/setter方法
    public Date getRespTime() {
        return respTime != null ? respTime : resp_time;
    }

    public void setRespTime(Date respTime) {
        this.respTime = respTime;
        if (this.resp_time == null) {
            this.resp_time = respTime;
        }
    }

    public Date getResp_time() {
        return resp_time;
    }

    public void setResp_time(Date resp_time) {
        this.resp_time = resp_time;
        if (this.respTime == null) {
            this.respTime = resp_time;
        }
    }

    // 留言状态字段的getter/setter方法
    public String getMsgState() {
        return msgState != null ? msgState : msg_state;
    }

    public void setMsgState(String msgState) {
        this.msgState = msgState;
        if (this.msg_state == null) {
            this.msg_state = msgState;
        }
    }

    public String getMsg_state() {
        return msg_state;
    }

    public void setMsg_state(String msg_state) {
        this.msg_state = msg_state;
        if (this.msgState == null) {
            this.msgState = msg_state;
        }
    }
}